package com.example.nbastar;

import androidx.appcompat.app.AppCompatActivity;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class MainActivity extends AppCompatActivity implements View.OnClickListener{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_main2).setOnClickListener(this);
        findViewById(R.id.btn_main3).setOnClickListener(this);
        findViewById(R.id.btn_contton_padded).setOnClickListener(this);
        findViewById(R.id.btn_sweater).setOnClickListener(this);

    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_main3:
                Intent intent = new Intent(MainActivity.this,MeActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_main2:
                Intent intent1 = new Intent(MainActivity.this,List_item.class);
                startActivity(intent1);
                break;
            case R.id.btn_contton_padded:
                Intent intent2 = new Intent(MainActivity.this,Star_list.class);
                startActivity(intent2);
                break;
            case R.id.btn_sweater:
                Intent intent3 = new Intent(MainActivity.this,HuoJian.class);
                startActivity(intent3);
                break;
        }

    }
}
